package com.maolong.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maolong.pojo.fuction.result.PageResult;
import com.maolong.pojo.dto.ProdDTO;
import com.maolong.pojo.dto.ProdSaveDTO;
import com.maolong.pojo.entity.Product;
import com.maolong.pojo.vo.Top6Product;
import com.maolong.pojo.vo.TopInOut;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author maolong
 * @since 2025-02-09
 */
public interface IProductService extends IService<Product> {

    PageResult query(ProdDTO prodDTO);

    void delete(Integer ids);

    void save(ProdSaveDTO prodSaveDTO) throws Exception;


    List<Top6Product> getTop5Product();

    List<Top6Product> getTop5ProductRemove();

    TopInOut getTop5ProductIn();

    TopInOut getTop5ProductOut();
}
